package com.ys;

/**
 * @program: note
 * @description:
 * @author:
 * @create 2020-06-11 21:58
 **/
public class ConsumeTypeDetail {
    private String type;
    private Integer num;
    private Double cost;

    public ConsumeTypeDetail(String type, Integer num, Double cost) {
        this.type = type;
        this.num = num;
        this.cost = cost;
    }

    public String getType() {
        return type;
    }

    public Integer getNum() {
        return num;
    }

    public Double getCost() {
        return cost;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public void setCost(Double cost) {
        this.cost = cost;
    }

    public static String getTitle() {
        return "类型\t数量\t消费金额\n";
    }

    @Override
    public String toString() {
        return new StringBuilder()
                .append(type)
                .append('\t').append(num)
                .append('\t').append(cost)
                .toString();
    }
}
